package com.ming.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *@Author:何元才
 *@Desc:
 *@data:2021-05-07 10:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "book_e")
public class BookE implements Serializable {
    /**
     * 电子书ID
     */
    @TableId(value = "e_id", type = IdType.AUTO)
    private Integer eId;

    /**
     * 电子书名称
     */
    @TableField(value = "e_name")
    private String eName;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 图书类别  1.教育  2.科技 3.文学 4.小说 5.其他 
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 下载次数
     */
    @TableField(value = "hot")
    private Integer hot;

    /**
     * 描述
     */
    @TableField(value = "descp")
    private String descp;

    /**
     * 状态  未审查0   已审查1  已删除2
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_E_ID = "e_id";

    public static final String COL_E_NAME = "e_name";

    public static final String COL_AUTHOR = "author";

    public static final String COL_TYPE = "type";

    public static final String COL_URL = "url";

    public static final String COL_HOT = "hot";

    public static final String COL_DESCP = "descp";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";
}